package com.xkcoding.orm.mybatis.controller;

import com.xkcoding.orm.mybatis.entity.Hk;
import com.xkcoding.orm.mybatis.mapper.HkMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class HkController {

    @Autowired
    HkMapper hkMapper;

    @GetMapping("hk1")
    Object hk1(){
        List<Hk> hkList = hkMapper.selectGjAndPh();

        return hkList;
    }
}
